package cn.iocoder.yudao.module.service.utils;

import cn.hutool.core.util.StrUtil;

public class BuildWSUserIdUtil {

    final static String CUSTOMER_PREFIX = "99";
    final static String ASSISTANT_PREFIX = "98";

    public static Long buildCustomerUserId(Long customerId) {
        String id = StrUtil.concat(true, CUSTOMER_PREFIX, StrUtil.fillBefore(String.valueOf(customerId), '0', 10));
        return Long.parseLong(id);
    }

    public static Long buildAssistantUserId(Long assistantId) {
        String id = StrUtil.concat(true, ASSISTANT_PREFIX, StrUtil.fillBefore(String.valueOf(assistantId), '0', 10));
        return Long.parseLong(id);
    }
}
